from pydantic import BaseModel, Field
from typing import Optional

class MaterialTransportBase(BaseModel):
    materialTransportName: str = Field(..., description="传送方式名称")

class MaterialTransportCreate(MaterialTransportBase):
    materialTransportId: str = Field(..., description="传送方式ID")

class MaterialTransportUpdate(BaseModel):
    materialTransportName: Optional[str] = None

class MaterialTransportDetail(MaterialTransportBase):
    materialTransportId: str
    createdBy: Optional[str] = Field(None, description="创建人(后端自动生成)")
    createdAt: Optional[str] = Field(None, description="创建时间(后端自动生成)")
    updatedBy: Optional[str] = Field(None, description="更新人(后端自动生成)")
    updatedAt: Optional[str] = Field(None, description="更新时间(后端自动生成)") 